package com.service;

import com.bean.User;
import com.dao.UserMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserById(Integer userId) {
        return this.userMapper.selectByPrimaryKey(userId);
    }
}